<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>资源添加</title>
    
  </head>
  
  <body>
   		<table>
	   		<s:form action="addResource" enctype="multipart/form-data" method="post">
	   			<tr>
	   				<s:textfield name="name" label="资源名称"/>
	   			</tr>
	   			<tr>
		   			<s:select list="{'视频','附件'}" headerValue="视频" name="oneLeveltype" label="资源类型"/>
		   		</tr>
	   			<tr>
	   				<s:select list="{'WM','REAL','FLV'}" label="视频类型"/>
	   			</tr>
	   			<tr>
	   				<s:textarea name="resourceDesc" label="资源描述"></s:textarea>
	   			</tr>
	   			<tr>
	   				<td>选择资源</td>
	   				<td>
						<div> <button>添加资源</button> </div>	 
						<div> 
							<div> <input type="file" name="fileName" /> <button>删除</button> </div>
							<div> <input type="file" name="fileName" /> <button>删除</button> </div>
						</div>  				
	   				</td>
	   			</tr>
	   			<tr>
	   				<s:textarea name="keyword" label="关键字"></s:textarea>
	   			</tr>
	   			<tr>
	   				<td></td>
	   				<td>
	   					<s:radio list="#{1:'发布',0:'不发布'}" name="isShow" value="0" ></s:radio>
	   				</td>
	   			</tr>
	   			<tr>
	   				<td></td>
	   				<td>
	   					<s:submit  value="确定" />
	   				<td>
	   			</tr>
	   		</s:form>
   		</table>
   		
   	
  </body>
</html>
